package create.singleton;


import org.junit.Test;

/**
 * 单例模式， 还有一种通过创建内部类形式实现
 * Created by hmily on 2017/9/6.
 */
public class TestMain {

    @Test
    public void testSingleton(){
        Dog.getDog().say();
    }
}
